﻿<%@ Page Title="去向查询" Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true"
    CodeFile="Goto.aspx.cs" Inherits="Goto" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="head"></asp:Content>
<asp:Content ID="MainContent" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    姓名：<asp:TextBox ID="txtName" runat="server"></asp:TextBox>
    <asp:Button ID="btnSearch" runat="server" Text="查询" onclick="btnSearch_Click" CssClass="btn btn-success" />
    <hr style="width:80%" />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
    AutoGenerateColumns="False" CssClass="table-hover table-hover tablewidth"
        onpageindexchanging="GridView1_PageIndexChanging">
        <Columns>
            <asp:TemplateField HeaderText="学号">
            <ItemTemplate>
            <asp:Label ID="Label1" runat="server" Text='<%#Bind("sno") %>'></asp:Label>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="姓名">
            <ItemTemplate>
            <asp:Label ID="Label6" runat="server" Text='<%#Bind("sname") %>'></asp:Label>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="性别">
            <ItemTemplate>
            <asp:Label ID="Label5" runat="server" Text='<%#Bind("ssex") %>'></asp:Label>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="专业">
            <ItemTemplate>
            <asp:Label ID="Label4" runat="server" Text='<%#Bind("smajor") %>'></asp:Label>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="去向">
            <ItemTemplate>
            <asp:Label ID="Label3" runat="server" Text='<%#Bind("go") %>'></asp:Label>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="单位">
            <ItemTemplate>
            <asp:Label ID="Label2" runat="server" Text='<%#Bind("gowhere") %>'></asp:Label>
            </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#594B9C" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#33276A" />
    </asp:GridView>
</asp:Content>